Skip to main content

Delete Column

AutomatR.Excel.Activities.DeleteColumn

The "Delete Column" activity in AutomatR is part of the Excel activities package, specifically designed for deleting a table column from a spreadsheet based on its name. This activity streamlines data manipulation tasks in Excel, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
Column IndexEnter the index for the column which needs to be deleted. Integer variables containing the column index.
Table NameEnter the table name. String variables containing the table name.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Delete Column" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Delete Column" activity onto the workflow.
  2. Configure the properties by specifying the table name and the index of the column to be deleted.
  3. Optionally, configure the delay.
  4. Execute the workflow to delete the specified column within the Excel workbook.

Example: Consider an example where the "Delete Column" activity is used to delete the column at index 3 from a table named "SalesTable" with a 2-second delay:

Delete Column:
Table Name: "SalesTable"
Column Index: 3
Delay: 2

In this example, the activity deletes the column at index 3 from the "SalesTable" within the Excel workbook, allowing time for any necessary cleanup or synchronization.